package com.v.im.imservice.netty;

import com.v.im.imservice.netty.server.NettyServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class NettyRunner implements CommandLineRunner {

    @Resource
    private NettyServer nettyServer;

    @Override
    public void run(String... args) throws Exception {
       nettyServer.start();
    }
}
